//
//  GRCertificationFooter.m
//  YC_GRice
//
//  Created by LiuFeng on 2018/7/23.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GRCertificationFooter.h"

@implementation GRCertificationFooter

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _sureBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        _sureBtn.frame               = CGRectMake(frame.size.width/2-75, 25, 150, 40);
        _sureBtn.backgroundColor     = KGMTHEM_COLOR;
        _sureBtn.titleLabel.font     = [UIFont systemFontOfSize:17];
        _sureBtn.layer.cornerRadius  = 20;
        _sureBtn.layer.masksToBounds = YES;
        [_sureBtn addTarget:self action:@selector(didSelectedConfirm:) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:_sureBtn];
    }
    return self;
}

- (void)didSelectedConfirm:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(didselectConfirmAction:)]) {
        [self.delegate didselectConfirmAction:sender];
    }
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
